home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / Makefile < prev    next >
Encoding:
Makefile  |  1993-01-18  |  2.6 KB  |  86 lines

  1. #********************************************************************
  2. # $Author: lindner $
  3. # $Revision: 1.3 $
  4. # $Date: 1992/12/29 23:30:22 $
  5. # $Source: /home/mudhoney/GopherSrc/gopher1.12/RCS/Makefile,v $
  6. # $State: Rel $
  7. #
  8. # Paul Lindner, University of Minnesota CIS.
  9. #
  10. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  11. # see the file "Copyright" in the distribution for conditions of use.
  12. #********************************************************************
  13. # MODULE: Makefile
  14. # Makefile for entire gopher distribution.
  15. #*********************************************************************
  16. # Revision History:
  17. # $Log: Makefile,v $
  18. # Revision 1.3  1992/12/29  23:30:22  lindner
  19. # Removed all references to fanout and mindexd, it's in gopherd now..
  20. #
  21. # Revision 1.2  1992/12/11  19:32:00  lindner
  22. # make tar now uses gnu tar, ignores RCS directorys and symbolic links
  23. #
  24. # Revision 1.1  1992/12/11  19:01:43  lindner
  25. # Gopher1.1 Release
  26. #
  27. #********************************************************************/
  28.  
  29.  
  30. include Makefile.config
  31.  
  32. all: objects server client
  33. server: gopherd/gopherd
  34. client: gopher/gopher
  35. objects: object/libgopher.a
  36.  
  37. gopherd/gopherd: objects
  38.     @echo "Making server"
  39.     @if [ -f /sdmach -a -d ./ir ]; then \
  40.         (echo "Making server with NeXT and WAIS searching";\
  41.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH -DWAISSEARCH" nextwais);\
  42.     elif [ -f /sdmach ]; then \
  43.         (echo "Making server with NeXT searching";\
  44.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH" next); \
  45.     elif [ -d ./ir ]; then \
  46.         (echo "Making server with WAIS searching";\
  47.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DWAISSEARCH" wais); \
  48.     else (echo "Making data server"; cd gopherd; $(MAKE) $(MFLAGS) none) \
  49.     fi
  50.  
  51. gopher/gopher: object/libgopher.a
  52.     @echo "Making client"
  53.     (cd gopher; $(MAKE) $(MFLAGS))
  54.  
  55. object/libgopher.a:
  56.     @echo "Making Objects"
  57.     (cd object; $(MAKE) $(MFLAGS))
  58.  
  59. install:
  60.     (cd gopher; $(MAKE) $(MFLAGS) install);
  61.     (cd gopherd; $(MAKE) $(MFLAGS) install);
  62.     (cd doc; $(MAKE) $(MFLAGS) install)
  63.  
  64. clean:
  65.     (cd gopher;     $(MAKE) $(MFLAGS) clean)
  66.     (cd gopherd;     $(MAKE) $(MFLAGS) clean)
  67.     (cd object;     $(MAKE) $(MFLAGS) clean)
  68.     (cd doc;     $(MAKE) $(MFLAGS) clean)
  69.     -rm -f *~
  70.     -rm -f "examples/Sample Directory/wais-index/index."*
  71.  
  72. spotless: clean
  73.     -rm -f *~
  74.  
  75. tar: spotless Makefile.config.dist
  76.     -rm  -f ir ui bin MANIFEST
  77.     cp Makefile.config.dist Makefile.config
  78.     chmod +w Makefile.config
  79.     touch MANIFEST
  80.     HERE=`basename $$PWD`; \
  81.     echo $$HERE ; \
  82.         cd .. ; \
  83.     find $$HERE -type f -print |grep -v '.o$$' |grep -v '~$$' >$$HERE/MANIFEST ; \
  84.     /usr/gnu/bin/tar  -T $$HERE/MANIFEST -czvf $$HERE.tar.Z 
  85.  
  86.